<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <link rel="stylesheet" href="../../../../book.css" charset="ISO-8859-1" type="text/css">
    <title>
      Organize Imports Preferences
    </title>
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
  </head>
  <body>
    <h1>
      Organize Imports Preferences
    </h1>
    <p>
      The
      <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.ImportOrganizePreferencePage)")'>
      <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Organize Imports preference page">
      <b>Java &gt; Code Style &gt; Organize Imports</b></a> preference page
      defines how the Organize Imports command generates the import statements in a compilation unit.
    </p>
    <table border="1" cellspacing="0" cellpadding="5" summary="Organize imports settings">
      <thead>
        <tr>
          <th rowspan="1" colspan="1">
            <p>
              Option
            </p>
          </th>
          <th rowspan="1" colspan="1">
            <p>
              Description
            </p>
          </th>
          <th rowspan="1" colspan="1">
            <p>
              Default
            </p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Import order list
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              This list of prefixes shows the sequential order for packages imported into a Java compilation unit. Each entry defines a block. Different blocks are separated by a
              spacer line.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              java<br>
              javax<br>
              org<br>
              com
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              New...
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Adds a package name prefix to the import order list. In the resulting dialog, type a package name or package name prefix.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
         <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              New Static...
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Adds a package name prefix to the import order list. In the resulting dialog, type a package name or package name prefix.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Edit...
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Edits the currently selected entry in the import order list. In the resulting dialog, type a package name or package name prefix.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Remove
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Removes the currently selected entry from the import order list.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Up
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Moves the selected package name prefix up in the import order list.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Down
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Moves the selected package name prefix down in the import order list.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Import...
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Loads a list of package name prefixes from a file.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Export...
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Saves the list of package name prefixes to a file.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              n/a
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Number of imports needed for .*
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              The number of import statements that are allowed for types in the same package before <em>&lt;package&gt;.*</em> is used.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              99
            </p>
          </td>
        </tr>
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Number of static imports needed for .*
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              The number of static import statements that are allowed for static members of the same type before <em>type</em> is used.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              99
            </p>
          </td>
        </tr>        
        <tr>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              Do not create imports for types starting with a lower case letter
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              If enabled, types starting with a lowercase letter are not imported.
            </p>
          </td>
          <td rowspan="1" colspan="1" valign="top" align="left">
            <p>
              On
            </p>
          </td>
        </tr>
      </tbody>
    </table>
    <h3 class="related">Related references</h3>
      <a href="../../../ref-menu-source.htm">Source actions</a>
  </body>
</html>

